package com.thread.view;

public class Test02 {
    int a = 1;

    public void add(int a) {
        a++;
        System.out.println("计算后" + a);
    }

    public static void main(String[] args) {
        Test02 test02 = new Test02();
        test02.add(test02.a);
        System.out.println("结果" + test02.a);
    }


    public void add(Hou hou) {
        hou.b = 5;
        System.out.println("计算后" + hou.b);
    }
}

class Hou {
    public int b;
}
